package com.yztstudy.service;

import com.yztstudy.dto.Result;
import com.yztstudy.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * Blog的业务逻辑层接口
 */

public interface IBlogService extends IService<Blog> {

    public abstract Result queryBlogById(Long id); //根据ID查询已经发表的博客

    public abstract Result queryHotBlog(Integer current); //查询热点博客,前端首页展示

    public abstract Result likeBlog(Long id); //用户点赞功能

    public abstract Result queryBlogLikes(Long id); //根据博客的ID查询点赞的人

    public abstract Result queryOtherBlog(Integer current, Long id); //查询这个博主的所有笔记

    public abstract Result queryMyBlog(Integer current); //查询自己发表的笔记

    public abstract Result saveBlog(Blog blog); //保存用户发表的博客

    public abstract Result queryBlogOfFollow(Long max, Integer offset); //滚动分页查询
}
